from django.shortcuts import render
from django.http import HttpResponse,HttpResponseRedirect
from .models import *

# Create your views here.
#主页
def index(request):
    
    context = {}

    return render(request,'supplier/index.html',context)
#品牌录入页面
def vender(request):
        
    context = {}

    return render(request,'supplier/vender.html',context)
#实体录入页面
def entity(request):

    context = {}

    return render(request,'supplier/entity.html',context)



#实物录入具体运算
def entity_luru(request):
    info = request.POST
    print(info)
    return HttpResponse('ok')


#品牌运算
def vender_luru(request):
    info = request.POST
    print(info)
    return HttpResponse('ok')
#品牌查找页面
def vender_find(request):
    context = {}

    return render(request,'supplier/vender_find.html',context)

#品牌查找运算
def vender_find_db(request):
    info = request.POST
    print(info)
    return HttpResponse('ok')

#实物查找页面
def entity_find(request):
    context = {}

    return render(request,'supplier/entity_find.html',context)
#实物查找运算
def entity_find_db(request):
    info = request.POST
    print(info)
    return HttpResponse('ok')
#品牌改变页面
def vender_change(request):
    context = {}

    return render(request,'supplier/vender_change.html',context)
#品牌改变运算
def vender_change_db(request):
    info = request.POST
    print(info)
    return HttpResponse('ok')
#实物改变页面
def entity_change(request):
    context = {}

    return render(request,'supplier/entity_change.html',context)
#实物改变运算
def entity_change_db(request):
    info = request.POST
    print(info)
    return HttpResponse('ok')
#品牌删除页面
def vender_del(request):
    context = {}

    return render(request,'supplier/vender_del.html',context)

#品牌删除运算
def vender_del_db(request):
    info = request.POST
    print(info)
    return HttpResponse('ok')

#实物删除页面
def entity_del(request):
    context = {}

    return render(request,'supplier/entity_del.html',context)
#实物删除运算
def entity_del_db(request):
    info = request.POST
    print(info)
    return HttpResponse('ok')








